xen/xsm: remove .xsm_initcall.init section
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Mon, 20 Jun 2016 14:04:21 +0000 (10:04 -0400)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 21 Jun 2016 15:55:20 +0000 (16:55 +0100)
commitc6f7d21747805b50123fc1b8d73518fea2aa9096
treeb567922877f38bb65034bcac1f5be282a42dfcf9
parent56fef9e367b250a3c6ff16b6c4494c5103ac4871
xen/xsm: remove .xsm_initcall.init section

Since FLASK is the only implementation of XSM hooks in Xen, using an
iterated initcall dispatch for setup is overly complex.  Change this to
a direct function call to a globally visible function; if additional XSM
hooks are added in the future, a switching mechanism will be needed
regardless, and that can be placed in xsm_core.c.

Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Reviewed-by: Doug Goldstein <cardoe@cardoe.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Julien Grall <julien.grall@arm.com>
xen/arch/arm/xen.lds.S
xen/arch/x86/xen.lds.S
xen/include/xsm/xsm.h
xen/xsm/flask/hooks.c
xen/xsm/xsm_core.c